<?php

/**
 * 日志操作
 */
function addLog($uid = '' , $caozuo = 1 , $balance = '')
{
  
  $data['uid'] = $uid;
  $data['caozuo'] = $caozuo;
  $data['runner'] = \think\Session::get('user');//管理员id
  $data['balance'] = $balance;
  $data['create_time'] = time();
  \think\Db::name('log')->insert($data);

}
?>